<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/29
 * Time: 9:38
 */
namespace app\index\controller;

use think\Controller;
use think\Db;

class Product extends Controller{

    public function product(){

        $power=Db::view("dress_tr","*")
            ->select();
        //dump(config());
        //dump($power);
        $brand=Db::view("brand_zi","brandzi_list,brandzi_id")
            ->view("dress_tr","tid","brand_zi.brandzi_id=dress_tr.brand_zi")
            ->select();
        $sku=Db::view("sku","*")
            ->select();
        //dump($brand);
        $this->assign("sku",$sku);
        $this->assign("power",$power);
        $this->assign("brand",$brand);

         return $this->fetch();
    }


}